package org.darcy.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.darcy.entity.work.WorkInstance;
import org.darcy.entity.work.WorkTask;
import org.darcy.framework.generic.GenericDao;

import com.baomidou.mybatisplus.core.metadata.IPage;

/**
 * Work dao层
 */
public interface WorkMapper extends GenericDao<WorkInstance> {

	/**
	 * 分页查询工作任务
	 */
	IPage<WorkInstance> getPage(IPage<WorkInstance> page, @Param("param") WorkInstance param);

	/**
	 * 首页工作任务统计
	 */
	List<WorkTask> getSummary(Integer uid);

}
